package com.monkey.luffer.springboot.demo.basis.thread;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @Author dengkaibing
 * @Date 2022/9/19 17:19
 * @Desc
 */
@Component
public class MyThread implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        new Thread(()->{
            System.out.println("Starting");
        }).start();
    }
}
